const app = {
  state: {
    userId: "",
    access_token: "",
    expire_in: "",
    province: '',
    bdc: 0,
    send_bdc: 0,
    class_angel: 0,
    balance: 0,
    bdf: 0,
    commission: 0,
    nodeLevel: 0
  },
  mutations: {
    SET_USERID: (state, userId) => {
      state.userId = userId;
    },
    SET_TOKEN: (state, access_token) => {
      state.access_token = access_token;
    },
    SET_EXPIRE_IN: (state, expire_in) => {
      state.expire_in = expire_in;
    },
    SET_BDC: (state, bdc) => {
      state.bdc = bdc;
    },
    SET_SEND_BDC: (state, send_bdc) => {
      state.send_bdc = send_bdc;
    },
    SET_CLASS_ANGEL: (state, class_angel) => {
      state.class_angel = class_angel;
    },
    SET_BALANCE: (state, balance) => {
      state.balance = balance;
    },
    SET_BDF: (state, bdf) => {
      state.bdf = bdf;
    },
    SET_COMMISSION: (state, commission) => {
      state.commission = commission;
    },
    SET_NODE_LEVEL: (state, nodeLevel) => {
      state.nodeLevel = nodeLevel;
    },
    SET_PROVINCE: (state, province) => {
      state.nodeLevel = province;
    }
  }
}
export default app
